From 48680f823461e5682613913deae182ed0c9e6be7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sun, 11 Dec 2016 22:13:25 +0100 Subject: [PATCH] babl: make missing fast path message explicit Explicit, and mandatory for BABL_UNSTABLE. --- babl/babl-fish-path.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 7a71184..3762d62 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -342,10 +342,24 @@ babl_fish_path (const Babl *source, babl_free (babl); babl_mutex_unlock (babl_format_mutex); +#ifndef BABL_UNSTABLE if (debug_conversions) - fprintf (stderr, "babl: no fast path for \"%s\" to \"%s\"\n", +#endif + { + static int warnings = 0; + if (warnings++ == 0) + fprintf (stderr, +"Missing fast-path babl conversion detected, Implementing missing babl fast paths\n" +"accelerates GEGL, GIMP and other software using babl, warnings are printed on\n" +"first occurance of formats used where a conversion has to be synthesized\n" +"programmatically by babl based on format description\n" +"\n"); + + fprintf (stderr, "*WARNING*: missing babl fast path(s) between formats \"%s\" and \"%s\"\n", babl_get_name (source), babl_get_name (destination)); + + } return NULL; } -- 2.30.2